package Satic;

/**
 * @author chihb
 * @create-time 2024/6/22 16:38
 * @description
 */
/*懒汉式单例    */
public class B {
    private static B b;

    private B(){

    }

    public static B getInstance(){
        if(b==null){
            b=new B();
        }
        return b;
    }
}
